/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.attendance.clazz.entity;

import com.arisgo.cloud.web.model.NumberIdWithTime;
import java.sql.Date;
import com.mybatisflex.annotation.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 员工
 *
 * @author Coulson
 * @since 2024-12-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("att_staff")
public class Staff extends NumberIdWithTime {

    /**
     * 租户
     */
    private Long tenantId;
    /**
     * 唯一码
     */
    private String code;
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private Boolean sex;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 出生年月
     */
    private Date birthday;
    /**
     * 联系方式
     */
    private String phone;
    /**
     * 邮箱
     */
    private String mail;
    /**
     * 状态 0/在职 1/离职
     */
    private Integer status;

    public static final String TENANT_ID = "tenant_id";
    public static final String CODE = "code";
    public static final String NAME = "name";
    public static final String SEX = "sex";
    public static final String AGE = "age";
    public static final String BIRTHDAY = "birthday";
    public static final String PHONE = "phone";
    public static final String MAIL = "mail";
    public static final String STATUS = "status";
}
